<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title></title>
<#include "/jeecms_sys/head.html"/>
<script type="text/javascript">
$(function() {
	$("#jvForm").validate();
});
</script>
</head>
<body onload="previewImg(1);">
<!-- 
<div class="box-positon">
	<div class="rpos"><@s.m "global.position"/>:  <@s.m "carOrderConf.function"/> - <@s.m "global.edit"/></div>
	<form class="ropt">
		<input type="button" value="<@s.m "global.backToList"/>" onclick="history.back();" class="return-button"/>
	</form>
	<div class="clear"></div>
</div> -->
<div class="body-box">
<#include "/common/image_upload.html"/>
<@p.form id="jvForm" action="o_update.do" labelWidth="12">

<@p.text width="50" colspan="1" label="标题" name="name" value=carOrderConf.name class="required" required="true" maxlength="30"/>
<@p.select colspan="1" label="shopInfo.shopName" name="shopId" value=carOrderConf.shop.id list=listShop listKey="id" listValue="shopName" class="required" required="true"/><@p.tr/>

<@p.radio colspan="1"  width="50" label="是否选择顾问" name="haveAdviser" value=carOrderConf.haveAdviser list={"1":"是","0","否"} class="required" required="true"/>
<@p.select colspan="1" label="预约类型" name="orderType" value=carOrderConf.orderType list=listOrderType listKey="dicCode" listValue="dicName" class="required" required="true"/><@p.tr/>

<@p.textarea label="预约详情"  name="content" value=carOrderConf.content cols="30" rows="2" maxlength="500" colspan="2" class="required" required="true" width="50"/><@p.tr/>

<!-- 上传图片 -->
<@p.td label="图文封面" colspan="1" width="50" noHeight="true">
<@p.text id="uploadImgPath1" name="frontCover" value=carOrderConf.frontCover style="width:220px" class="required"  required="true"/>
<!--  <input type="button" value="<@s.m "imageupload.preview"/>" onclick="previewImg(1);" class="preview-button"/> --><br/>
<span id="ufc1" style="position:relative">
<input type='text' id='uploadFileText1' size="14"/>  
<input class="browse" type='button' value='<@s.m "global.browse"/>'/>
<input onchange="$('#uploadFileText1').val(this.value)" size="14" type="file" id="uploadFile1" class="file-button"/>
</span>
<label><input type="checkbox" onclick="$('#mark1').val(this.checked);"/><@s.m "imageupload.mark"/></label>
<input type="hidden" id="mark1" value="false"/> <input type="button" value="<@s.m "imageupload.upload"/>" onclick="upload(1);" class="upload-button"/><br/>
<@s.m "global.width"/>: <input type="text" id="zoomWidth1" value="100" size="5"/>
<@s.m "global.height"/>: <input type="text" id="zoomHeight1" value="70" size="5"/> 
<input type="button" value="<@s.m "imageupload.cut"/>" onclick="imgCut(1);" class="cut-button"/> 
</@p.td>
<@p.td colspan="1" width="50">
<img id="preImg1" alt="<@s.m "imageupload.preview"/>" style="width:100px;height:70px;background-color:#CCCCCC;border:1px solid #333"/>
</@p.td><@p.tr/>
<!-- 图片end -->
<@p.td colspan="2">
	<@p.hidden name="id" value=carOrderConf.id/>
	<@p.submit code="global.submit"/>&nbsp; <@p.reset code="global.reset"/>
</@p.td>
</@p.form>
</div>
</body>
</html>